import request from '@/utils/request'
export default {
  getAllOrder(pagenum) {
    return request({
      url: `/seckill/user/getAllOrder`,
      method: 'get',
      params: {
        "pageNum":pagenum,
      }
    })
  },

  del(orderId,productId){
    return request({
        url: `/seckill/user/delUserOrder`,
        method: 'post',
        data: {
          "orderId":orderId,
          "productId":productId
        }
      })
  },
  alterPassword(password,verification,password1,password2){
    return request({
      url: `/seckill/user/alterPassword`,
      method: 'post',
      data: {
        "password":password,
        "verification":verification,
        "password1":password1,
        "password2":password2
      }
    })
  },
  getUserInfo(){
    return request({
        url: `/seckill/user/getUserInfo`,
        method: 'post',
      })
  },
}